package huixue.cn.com.rxapp.util;

/**
 * Created by gongdongyang on 2018/8/22.
 */

public class AESUtil {

    static {
        System.loadLibrary("JNITestSample");
    }

    public native String encrypt(String plainText, String key);

    public native String decrypt(String cipherText, String key);

    /**
     * AES加密
     *
     * @param keys
     * @param src
     * @return
     */
    public native byte[] encodeByAES(byte[] keys, byte[] src);

    /**
     * AES解密
     *
     * @param keys
     * @param src
     * @return
     */
    public native byte[] decodeByAES(byte[] keys, byte[] src);
}
